package com.itheima.springdemo2.controller;


import com.itheima.springdemo2.BootDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class BootController {
    @Autowired
    private BootDemo bootDemo;
    @RequestMapping("/a")
    public  String test() {
        return bootDemo.getName();
    }
}
